from django.db import models
from django.utils.timezone import now

# Create your models here.
class C_Contact(models.Model):
    name = models.CharField(max_length=10,verbose_name='留言姓名',null=False,blank=False,)
    email = models.CharField(max_length=25, verbose_name='留言邮箱', null=False, blank=False, )
    phone = models.CharField(max_length=14, verbose_name='留言电话', null=False, blank=False, )
    massage = models.TextField(max_length=250,verbose_name='留言',null=False, blank=False,)
    time = models.DateTimeField(default=now,verbose_name='时间')

    class Meta:
        verbose_name = '用户留言'
        verbose_name_plural = verbose_name